namespace ABA
{
    // 用户自定义的数据，具体游戏具体配置
    public class GameConf
    {
        public static int DESIGN_RESOLUTION_X = 1080;
        public static int DESIGN_RESOLUTION_Y = 2336;
        public static bool multiTouchEnabled = false;

        public static string LS_PREFIX = "Combo_";
        public static string NET_HTTP_ROUTE = "/Combo";
        ///public static FGUIWinInfo LOGIN_WIN = null;//WinConst.LOGIN_YOUKE;
        public static string NET_CHANNEL_NAME = "Default";

        public static string SERVER_IP_DOMESTIC_IN = "192.168.110.36";//内网
        public static string SERVER_IP_DOMESTIC_OUT = "8.138.8.58"; // 国内外网
        //public static string SERVER_IP_OVERSEAS = "47.90.134.98";// 海外服务器ip
        public static string SERVER_IP_OVERSEAS = "overseas.supergames.net"; // 国外 ip=-》域名

        // public static string SERVER_IP = SERVER_IP_DOMESTIC_IN;
        //public static string SERVER_IP = SERVER_IP_OVERSEAS;

        /// </summary>
#if UNITY_EDITOR || UNITY_STANDALONE
        public static string SERVER_IP = SERVER_IP_DOMESTIC_IN;
#elif UNITY_ANDROID
        // public static string SERVER_IP = SERVER_IP_DOMESTIC_OUT; 
        public static string SERVER_IP = SERVER_IP_DOMESTIC_IN; 
#elif UNITY_IOS
        public static string SERVER_IP = SERVER_IP_OVERSEAS;
        
#endif

        public static int SERVER_PORT = 8000;
        public static string PLATFORM = "sg";

        public static string REGION
        {
            get
            {
#if UNITY_EDITOR || UNITY_STANDALONE
                return "Asia";
#elif UNITY_ANDROID
                return "Asia";
#endif
            }
        }
        /// <summary>
        /// 内网测试Ios AppStore 无意义，必须外网+沙盒
        /// 内网测试 
        /// </summary>
#if UNITY_EDITOR || UNITY_STANDALONE
        //public static PlatformDef CHANNEL = PlatformDef.PdDev;
#elif UNITY_ANDROID
        //public static PlatformDef CHANNEL = PlatformDef.PdTapTap;
        public static PlatformDef CHANNEL = PlatformDef.PdDev;
#elif UNITY_IOS
        public static PlatformDef CHANNEL = PlatformDef.PdApple;
#endif

        public static string LANGUAGE = "zh"; // 默认语言zh  tc(繁体), en

        public static int BATTLE_FIX_FRAMERATE = 60;//120;
        public static float BATTLE_FIX_FRAMEINTER = 0.016f;//0.02f; // 1/50;
        // public static float BATTLE_FIX_FRAMEINTER = 0.008f; // 1/120;
        // public static float BATTLE_TRUE_FRAMEINTER = BATTLE_FIX_FRAMEINTER * 0.5f;

        //TODO:longer  打开GM功能,上线记得关闭
        public static bool IS_OPEN_GM = true;
        public static bool IS_BATTLE_FRAME_LOG_OPEN = false;
        public static string CLIENT_VER = "1.0.0";
        public static bool IS_OFFLINE_MODE = true;

        public static string LSKEY_ACCOUNT_ID = "AccountID";
        public static string LSKEY_ACCOUNT_LT = "AccountLT";
        //public static string REG_SERVER_LIST_URL = $"http://{SERVER_IP}:{SERVER_PORT}/server?cmd=reg_server_list&platform={PLATFORM}&region={REGION}";
        public static string REG_SERVER_LIST_URL = $"http://{SERVER_IP}:{SERVER_PORT}/server?cmd=region_server_list&region={REGION}";


        public static string GET_ACCOUNT_GATE_URL = $"http://{SERVER_IP}:{SERVER_PORT}/server?cmd=get_account_gateway&account_id=";

        public static string Taptap_ClientID = "ifv7wj6he6amcdwl6m";
        public static string Taptap_Token = "vyWJiqlFv1UILefNaBDpZZJ9oX2xNU9fUINhLJPE";
        public static string Taptap_ServerSecret = "YDjMWJUVWgGp7wc4aBpRUo2S9mKpHbDh";


    }
}
